﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import flash.utils.*;

    public class SGuildItemBetUpdateInfo extends IMessageBase
    {
        public var status:int;
        public var bossCode:int;
        public var starDt:Date;
        public var myItemCodes:Array;
        public var applyInfo:Dictionary;
        public var diceInfo:Array;
        public const _type:int = 5119;
        public static var _regist:SGuildItemBetUpdateInfo = new SGuildItemBetUpdateInfo(true);

        public function SGuildItemBetUpdateInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SGuildItemBetUpdateInfo();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.status);
            param1.writeInt(this.bossCode);
            param1.writeDate(this.starDt);
            SeqIntHelper.write(param1, this.myItemCodes);
            DictIntIntHelper.write(param1, this.applyInfo);
            SeqGuildItemDiceResultHelper.write(param1, this.diceInfo);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.status = param1.readInt();
            this.bossCode = param1.readInt();
            this.starDt = param1.readDate();
            this.myItemCodes = SeqIntHelper.read(param1);
            this.applyInfo = DictIntIntHelper.read(param1);
            this.diceInfo = SeqGuildItemDiceResultHelper.read(param1);
            return;
        }// end function

    }
}
